package com.example.crm.service.Imp;

import com.example.crm.entity.Customer;
import com.example.crm.mapper.CustomerMapper;
import com.example.crm.service.CustomerService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CustomerServiceImp implements CustomerService {
    @Resource
    private CustomerMapper customerMapper;
    @Override
    public List<Customer> finNameAndRegion(String name, String region,Integer current,Integer pageSize) {
        return customerMapper.finNameAndRegion(name,region,current,pageSize);
    }

    @Override
    public int count(String name, String region) {
        return customerMapper.count(name,region);
    }
}
